package com.ldzy.pojo;

public class Bean1 {
    private  String name;

    public Bean1(String name) {
        System.out.println("我是构造方法实例化");
        this.name = name;
    }

    public Bean1() {
        System.out.println("我是无参构造方法实例化");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Bean1{" +
                "name='" + name + '\'' +
                '}';
    }
}
